/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-24
 * Time: 16:54
 */
public class Test4 {
    public static void istotalNum(int num){
        int sum=0;
        for (int i = 1; i < num; i++) {
            if(num%i==0){
                sum=sum+i;
            }
        }
        if(num==sum){
            System.out.println(num+"是完全数");
        }
    }

    public static void main(String[] args) {
        int day=9;
        int sum=1;
        while(day>0){
            sum=(sum+1)*2;
            day--;
        }
        System.out.println("总共有"+sum+"个桃子");

    }

}
